package chai.ning.extend;

import java.util.Arrays;

public class Bus extends MotorVehicles {
	
	private String[] seats ; // 座位
	private String television ; // 电视
	
	public void introduce() {
		System.out.println( this.wheel + " , " + this.frame ); // 从间接父类中继承而来
		System.out.println( this.engine + " , " + this.locator ); // 从直接父类中继承而来
		// 当前类中访问本类直接声明的 实例变量 时，可以使用 this ，也可以省略 this
		System.out.println( this.television );
		System.out.println( Arrays.toString( this.seats ));
	}
	
	public static void main(String[] args) {
		Bus bus = new Bus();
		
		bus.wheel = "铁轮" ;
		bus.frame = "铁架" ;
		bus.engine = "马达" ;
		bus.locator = "北斗" ;
		bus.seats = new String[ 10 ];
		bus.television = "TCL" ;
		
		bus.move();
		bus.introduce();
	}
	
}
